//
//  NSPhotoCameraCell.m
//  Meboo
//
//  Created by kyo on 2024/4/18.
//

#import "NSPhotoCameraCell.h"

@interface NSPhotoCameraCell()
@property (nonatomic, strong) UIImageView *cameraImageView;
@end

@implementation NSPhotoCameraCell
- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setupUI];
    }
    return self;
}

#pragma mark - Public Metohd

#pragma mark - Action

#pragma mark - UI
- (void)setupUI {
    self.contentView.backgroundColor = HEXS(@"B92176");
    self.contentView.layer.cornerRadius = MBHeightScale(4);
    
    [self.contentView addSubview:self.cameraImageView];
    [self.cameraImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.contentView);
    }];
}

#pragma mark - Setter && Getter
- (UIImageView *)cameraImageView {
    if (!_cameraImageView) {
        _cameraImageView = [UIImageView new];
        _cameraImageView.image = ImageWithName(@"chat_photo_camera");
    }
    return _cameraImageView;
}
@end
